package com.glodon.paas.document.dao;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.glodon.paas.document.dao.domain.PartEntity;

/**
 * @author wangchen
 */
public interface PartDao extends DBDao<PartEntity, String> {

    static Logger logger = LoggerFactory.getLogger(PartDao.class);

    PartEntity getLatestPartByRevision(String revisionId);

    void delParts(String revisionId);

    List<PartEntity> getPartsByRevision(String revisionId);

    int getPartsCountByRevision(String revisionId);
}
